// 别忘了引入网络请求
import request from '@/utils/request'
/***
 * 获取组织架构数据
 * 
 *  */ 
export function getDepartments(){
    return request({
        url: '/company/department'
    })
}

/**
 * 根据id根据部门 接口是根据result的规则设计的 删除delete 新增post修改put 获取get
 * 
*/

export function delDepartments(id){
    return request({
        url:`/company/department${id}`,
        method:'delete'
    })
}